home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / utility / 557 / redform / redform.doc < prev   
Text File  |  1991-05-25  |  8KB  |  303 lines

  1.                                      
  2.  
  3.                                      
  4.  
  5.                                      
  6.  
  7.                                 RED FORMAT
  8.  
  9.                                      
  10.  
  11.                                    1.65
  12.  
  13.                                      
  14.  
  15.    Oh No, not another formatting program. Why do anyone bother to 
  16.    write all those formattingprograms? Well, I started writing Red 
  17.    Format as a test. I wanted to se how hard it was to format a disk. 
  18.    Since the ST is so easy to program it was quite easy to get the 
  19.    program running. After that I have added some, more or less useful, 
  20.    features to the program. I shall here try to explain what they are 
  21.    supposed to do to your disks.
  22.  
  23.    
  24.  
  25.    When you start the program you will first se a small box presenting 
  26.    the program. Just hit Return and it will disappear. After that you 
  27.    will se the main menu. From this form you can select how you want 
  28.    your disks formatted.
  29.  
  30.    
  31.  
  32.    To the right you se the different features Red Format supports. 
  33.    Let's look at them.
  34.  
  35.    
  36.  
  37.                                   FORMAT
  38.  
  39.    
  40.  
  41.    You can specify the number of tracks you want on the disk. You can 
  42.    select values between 40 and 44 and between 80 and 84. The lower 
  43.    set of values should be used with 5.25 inch disks.
  44.  
  45.    
  46.  
  47.    Another way to expand the space on the disk is to format with 10 
  48.    sectors per track instead of 9. This can be done with Red Format.
  49.  
  50.    
  51.  
  52.    Other values that can be set to control the formatting of the disk 
  53.    are Number of sides, Interleave and Sectors per FAT. You can also 
  54.    specify the bootsectortype, ST or IBM. If you select IBM, other 
  55.    values will change to default settings for a PC.
  56.  
  57.    
  58.  
  59.    Before you select Format you should specify which disk you want to 
  60.    format. You can select between A:, B: and Both. If you select Both, 
  61.    Both A: and B: will be formatted while you can take a break. This 
  62.    function requires two drives.
  63.  
  64.    
  65.  
  66.                                FAST FORMAT
  67.  
  68.    
  69.  
  70.    This function does not format the disk. It just erases the first 
  71.    tracks of the disk. This is the fastest way to clear a disk. 
  72.    Everything on the disk will be lost for ever.
  73.  
  74.    
  75.  
  76.                                  DISKINFO
  77.  
  78.    
  79.  
  80.    With this function you can display what is hidden in the 
  81.    bootsector. It's easier to use this display than to look at the 
  82.    data using a sectoreditor.
  83.  
  84.    
  85.  
  86.    On the last row of the form you will get a message telling you how 
  87.    the checkum of the bootsector is calculated. You can also modify 
  88.    the data with some functions.
  89.  
  90.    
  91.  
  92.    ZERO BRANCH
  93.  
  94.    
  95.  
  96.    This function clears the first word in the bootsector. This is a 
  97.    simple way to kill a virus. It's not the most elegant way to do it, 
  98.    but it sure works. (If you feel like hunting viruses, use AVK)
  99.  
  100.    
  101.  
  102.    CLUSTERS
  103.  
  104.    
  105.  
  106.    This function tells you how much of the disk is used.
  107.  
  108.    
  109.  
  110.    VERIFY
  111.  
  112.    
  113.  
  114.    This function try to figure out how the disk is formatted. This can 
  115.    be useful if some program manages to wipe out your bootsector. Use 
  116.    it with care. If a disk is formatted several times with different 
  117.    settings this function may be fooled.
  118.  
  119.    
  120.  
  121.    After the disk have been checked a form will be displayed where you 
  122.    can select between the values in the bootsector and the values 
  123.    calculated by the program. If you like, you can even enter your own 
  124.    values.
  125.  
  126.    
  127.  
  128.    The program also let you change the bootsectortype and the 
  129.    checksum.
  130.  
  131.    
  132.  
  133.                                CREATE BOOT
  134.  
  135.                                      
  136.  
  137.    This function makes it easy to put a program in the bootsector. You 
  138.    can also move a program from a bootsector to a file just as easy. 
  139.  
  140.    
  141.  
  142.    With the functions LOAD and SAVE you can load or save a file 
  143.    (program). Before you do this you must know what type of file you 
  144.    want to manipulate, just the code or the whole bootsector. This can 
  145.    be selected through the FILETYPE-switch. If you select CODE then 
  146.    the program assumes that the program starts at the beginning of the 
  147.    file.
  148.  
  149.    
  150.  
  151.    READ and WRITE lets you get or put a program from or to the 
  152.    bootsector. When you use WRITE you must specify the offset. This 
  153.    offset will be written in the beginning of the bootsector, so that 
  154.    the OP will know where the startpoint of the program is. The 
  155.    program will be written at the correct location of the bootsector 
  156.    for the selected offset.
  157.  
  158.    
  159.  
  160.    The bootsector must start with $60. This is the branch-instruction. 
  161.    The offset will be written right after this byte. When the 
  162.    bootsector is started, this branch is executed. This means that the 
  163.    program must be located with the offset from where the PC points 
  164.    when the branch is executed, i.e. right after it. The program must 
  165.    be located two bytes higher than the offset indicates.
  166.  
  167.    
  168.  
  169.    If this sound complicated, don't worry, the program takes care of 
  170.    all this for you.
  171.  
  172.    
  173.  
  174.    For a bootsector to be executed the checksum must be calculated in 
  175.    a special way. The program lets you choose how the checksum should 
  176.    be calculated i.e. if the program should start or not. You maybe 
  177.    wonders why I included this function? I often wonder that myself.
  178.  
  179.    
  180.  
  181.    Another rather strange function let you specify the start-
  182.    instruction. I don't think that anything besides $60 will work, but 
  183.    I'm no wizard.
  184.  
  185.    
  186.  
  187.    To avoid confusion I should tell you that the program after a READ 
  188.    copies everything after the point indicated by the offset to a 
  189.    Codebuffer. This means that if the programs entrypoint is in the 
  190.    middle of the code, everything before this is lost. For my program 
  191.    to work correctly the programs entrypoint must be at the beginning 
  192.    of the code.
  193.  
  194.    
  195.  
  196.    This must be true even for programs moved from a bootsector to 
  197.    another with READ and WRITE. The reason for this is that the 
  198.    program always build the bootsector from the Codebuffer, so that 
  199.    you should be able to change the programs offset.
  200.  
  201.    
  202.  
  203.    I someone would like the ability to specify the entrypoint in the 
  204.    code, please contact me and I will add the ability.
  205.  
  206.    
  207.  
  208.    If you are trying to analyse a program with an entrypoint in the 
  209.    middle of the code, please save the whole bootsector. This will not 
  210.    let you put it back with my program but you will not lose anything 
  211.    that must be in the file for you to be able to disassemble it.
  212.  
  213.    
  214.  
  215.                                VOLUME NAME
  216.  
  217.    
  218.  
  219.    This function lets you add or alter a Volume Name on a disk. This 
  220.    funktion only works on ST-disk. The IBM uses a different way to 
  221.    mark the volume name.
  222.  
  223.    
  224.  
  225.                                SYSTEM INFO
  226.  
  227.    
  228.  
  229.    With this utility you can easily inspect some of the 
  230.    systemvariables. You will be able to se the various versionnumbers 
  231.    in your computer and the languagecode. Here you will also find some 
  232.    useful functions.
  233.  
  234.    
  235.  
  236.    FLOPPIES
  237.  
  238.    
  239.  
  240.    Here you can specify how many floppies you have attached. This 
  241.    function lets you use a diskdrive that wasn't on when you booted 
  242.    your system.
  243.  
  244.    
  245.  
  246.    DRIVES
  247.  
  248.    
  249.  
  250.    Here you can set what logical drives the system knows of.
  251.  
  252.    
  253.  
  254.    BOOTDEVICE
  255.  
  256.    
  257.  
  258.    Here you can specify what logical unit the system should boot from.
  259.  
  260.    
  261.  
  262.    TRAPS
  263.  
  264.    
  265.  
  266.    With this utility you can inspect the TRAP-vectors.
  267.  
  268.    
  269.  
  270.    This was a guide through the functions in RED FORMAT. I hope you 
  271.    will find the program useful.
  272.  
  273.    
  274.  
  275.    If you have any comments on it please let me know.
  276.  
  277.    
  278.  
  279.    Anders Svensson
  280.  
  281.    Hässleholmsvägen 16
  282.  
  283.    283 00  OSBY
  284.  
  285.    SWEDEN
  286.  
  287.    
  288.  
  289.    
  290.  
  291.    
  292.  
  293.    
  294.  
  295.    
  296.  
  297.    
  298.  
  299.    
  300.  
  301.    
  302.  
  303.